<?php
// +----------------------------------------------------------------------
// | Author: derek <693472824@qq.com> <http://www.bloveambition.com/>
// +----------------------------------------------------------------------

namespace Blovex4\Model;
use Think\Model\ViewModel;

/**
 * derek <693472824@qq.com>
 */
class CashViewModel extends ViewModel {

    protected $viewFields = array(
            
        'WorkerCash'   =>  array(
                            'worker_id', 'op_type', 'previous', 'cash', 'balance', 'status', 'create_time', 
                            '_type'=>'LEFT'
        ),
            
        'Orders'   =>  array(
                            'order_id', 'order_no', 'emergency', 'delay', 'appointment', 'total', 'rate_price', 
                            'turnover', 'pay_type', 'status'=>'order_status',
                            '_on'=>'WorkerCash.order_id=Orders.order_id',
        ),
    );
}